package com.kuaimacode.kframework.mybatis.mapper.master;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kuaimacode.kframework.mybatis.models.master.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author Bean
 * @since 2019-03-16
 */
public interface UserMasterMapper extends BaseMapper<UserMaster> {
    List<UserLocation> findNearMasterLocaion(@Param("lon")double lon,
                                             @Param("lat")double lat,
                                             @Param("dis")Integer dis,
                                             @Param("agentId")String agentId,
                                             @Param("status")String status,
                                              @Param("masterStatus")String masterStatus);

    List<MasterMessage> findMasterMessage(
            @Param("userId")Long userId,
            @Param("agentId")String agentId,
            @Param("id")Long id,
                                          @Param("masterName")String masterName,
                                          @Param("authStatus")String authStatus,
                                          @Param("serviceType")String serviceType);

    List<MasterWaitResp> findWaitMaster(
            @Param("userId")Long userId,
            @Param("agentId")String agentId,
            @Param("id")Long id,
            @Param("masterName")String masterName,
            @Param("authStatus")String authStatus,
            @Param("serviceType")String serviceType,
            @Param("status")String status,
            @Param("masterStatus")String masterStatus);

    MasterData findMasterData(@Param("userId")Long userId);

    List<UserMasterData> findAllMaster(@Param("agentId")String agentId,@Param("authStatus")String authStatus,@Param("masterName")String masterName,@Param("serviceType")String serviceType,@Param("status")String status);

    List<UserMaster> findOnlineMaster(@Param("status")String status,@Param("onlineStatus")String onlineStatus);
}